﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace SIS.DataAccess
{
	/// <summary>
	/// Author: hieunv
	/// </summary>
	[Serializable]
	class Prerequirement : DataTable
	{
		public const string COURSE_ID = "course_id";
		public const string PREREQUIREMENT_ID = "prereq_id";
		public Prerequirement()
			: base("Requirement")
		{
			var courseID = new DataColumn(COURSE_ID, typeof(string));
			courseID.AllowDBNull = false;
			this.Columns.Add(courseID);
			var prerequirementID = new DataColumn(PREREQUIREMENT_ID, typeof(string));
			prerequirementID.AllowDBNull = false;
			this.Columns.Add(prerequirementID);
			this.PrimaryKey = new DataColumn[] { courseID, prerequirementID };
		}
	}
}
